package yl.hs.bmipfull.pojo.material;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;

/**
 * 作用:  原材库存信息表实体类<br/>
 * 创建时间: 2021年05月19日 09时47分31秒 <br/>
 *
 * @author 吴高丰
 */
@DBTable(disName = "原材库存信息表", mapCode = "raw_material_inventory")
public class RawMaterialInventoryEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "原材库存信息表编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "RMKC")
    private String sn;
    /**
     * 种类编号
     */
    @DBField(disName = "种类编号",mapCode = "rmCate")
    private String rmCate;
    /**
     * 仓库编号
     */
    @DBField(disName = "仓库编号",mapCode = "whSN")
    private String whSN;
    /**
     * 原材编号
     */
    @DBField(disName = "原材编号",mapCode = "rmSN")
    private String rmSN;



    /**
     * 状态
     */
    @DBField(disName = "状态",mapCode = "state")
    private short state;

    /**
     * 原材种类名称
     */
    @DBField(disName = "原材种类名称",mapCode = "rmCateName")
    private String rmCateName;
    /**
     * 原材名称
     */
    @DBField(disName = "原材名称",mapCode = "rmName")
    private String rmName;
    /**
     * 原材规格
     */
    @DBField(disName = "原材规格",mapCode = "rmSpec")
    private String rmSpec;

    /**
     * 仓库名称
     */
    @DBField(disName = "仓库名称",mapCode = "whName")
    private String whName;
    /**
     * 生产线名称
     */
    @DBField(disName = "生产线名称",mapCode = "plName")
    private String plName;
    /**
     * 库存数量
     */
    @DBField(disName = "库存数量",mapCode = "quantity")
    private BigDecimal quantity=new BigDecimal(0);
    /**
     * 最大库存量
     */
    @DBField(disName = "最大容量",mapCode = "maxQuantity")
    private BigDecimal maxQuantity;
    /**
     * 最大库存量
     */
    @DBField(disName = "最小报警容量",mapCode = "alertQuantity")
    private BigDecimal alertQuantity;

    public String getRmCateName() {
        return rmCateName;
    }

    public void setRmCateName(String rmCateName) {
        this.rmCateName = rmCateName;
    }

    public String getRmName() {
        return rmName;
    }

    public void setRmName(String rmName) {
        this.rmName = rmName;
    }

    public String getRmSpec() {
        return rmSpec;
    }

    public void setRmSpec(String rmSpec) {
        this.rmSpec = rmSpec;
    }

    public String getWhName() {
        return whName;
    }

    public void setWhName(String whName) {
        this.whName = whName;
    }

    public String getPlName() {
        return plName;
    }

    public void setPlName(String plName) {
        this.plName = plName;
    }

    public BigDecimal getMaxQuantity() {
        return maxQuantity;
    }

    public void setMaxQuantity(BigDecimal maxQuantity) {
        this.maxQuantity = maxQuantity;
    }

    public BigDecimal getAlertQuantity() {
        return alertQuantity;
    }

    public void setAlertQuantity(BigDecimal alertQuantity) {
        this.alertQuantity = alertQuantity;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getRmCate() {
        return rmCate;
    }

    public void setRmCate(String rmCate) {
        this.rmCate = rmCate;
    }

    public short getState() {
        return state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWhSN() {
        return this.whSN;
    }

    public void setWhSN(String whSN) {
        this.whSN = whSN;
    }

    public String getRmSN() {
        return this.rmSN;
    }

    public void setRmSN(String rmSN) {
        this.rmSN = rmSN;
    }

    public BigDecimal getQuantity() {
        return this.quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }


}